﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Newtonsoft.Json;

namespace Tulde.WindowsPhone.Music.ViewModel
{
     [JsonObject()]
    public class Artist 
    {
        [JsonProperty("artistId")]
        public string ArtistId { get; set; }
        [JsonProperty("artistName")]
        public string ArtistName { get; set; }
        [JsonProperty("artistSize")]
        public string ArtistSize { get; set; }
        [JsonProperty("albumCount")]
        public int? AlbumCount { get; set; }
        [JsonProperty("trackCount")]
        public int? TrackCount { get; set; }

         public string DisplayMessage1
        {
            get
            {
                return this.AlbumCount > 1 ? String.Format("{0} Albums", this.AlbumCount) : String.Format("{0} Album", this.AlbumCount);
            }
        }
         public string DisplayMessage2
         {
             get
             {
                 return this.TrackCount > 1 ? String.Format("{0} Tracks", this.TrackCount) : String.Format("{0} Track", this.TrackCount);
             }
         }
        public Artist()
        {

        }
       
    }
}
